﻿using System;

public partial class SqlMapModel
{
    private Type _datatype;
    private bool _nullvalue;
    private string _sqlcolumnname;

    public SqlMapModel(string sqlColumnName, Type t)
    {
        this._nullvalue = true;
        this._datatype = t;
        this._sqlcolumnname = sqlColumnName;
    }

    public SqlMapModel(string sqlColumnName, Type t, bool sqlNullValue)
    {
        this._nullvalue = true;
        this._datatype = t;
        this._sqlcolumnname = sqlColumnName;
        this._nullvalue = sqlNullValue;
    }

    public string SqlColumnName
    {
        get
        {
            return this._sqlcolumnname;
        }
    }

    public Type SqlDataType
    {
        get
        {
            return this._datatype;
        }
    }

    public bool SqlNullValue
    {
        get
        {
            return this._nullvalue;
        }
    }
}

